import request from '../utils/request'

/**
 * 登录
 * @param username
 * @param password
 * @returns {AxiosPromise}
 */
export function login(username,password) {
  return request({
    url: '/login',
    method: 'post',
    params:{
      username,
      password
    }
  })
}

/**
 * 登录
 * @param username
 * @param password
 * @returns {AxiosPromise}
 */
export function logout() {
  return request({
    url: '/logout',
    method: 'get',
  })
}
